package com.draemon.haixiawenti.repository;

import com.yangzcp.userpojo.B_saiimg;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * <p></p>
 *
 * @author  yangz
 * @date    2016/11/13
 * @version latest
 */
public interface B_saiimgRepository extends JpaRepository<B_saiimg, Integer>{

    @Query("from B_saiimg where ref_saizu.id=?1 order by publish_date desc ")
    public List<B_saiimg> findCond(Integer id);
}
